package com.infra.micro.quartz.domain.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "QuartzJobLogPO", description = "biz_quartz_job_log表实体对象")
public class QuartzJobLogPO implements Serializable {
    /**
     * BIGINT(19) 必填
     * 任务日志id
     */
    @ApiModelProperty(name = "logId", value = "任务日志id")
    private Long logId;

    /**
     * BIGINT(19) 必填
     * 任务id
     */
    @ApiModelProperty(name = "jobId", value = "任务id")
    private Long jobId;

    /**
     * VARCHAR(200)
     * spring bean名称
     */
    @ApiModelProperty(name = "beanName", value = "spring bean名称")
    private String beanName;

    /**
     * VARCHAR(2000)
     * 参数
     */
    @ApiModelProperty(name = "params", value = "参数")
    private String params;

    /**
     * BIT(1) 必填
     * 成功标识
     */
    @ApiModelProperty(name = "isSucceed", value = "成功标识")
    private Boolean isSucceed;

    /**
     * VARCHAR(128)
     * 执行机器名
     */
    @ApiModelProperty(name = "hostName", value = "执行机器名")
    private String hostName;

    /**
     * BIGINT(19) 必填
     * 耗时(单位：毫秒)
     */
    @ApiModelProperty(name = "times", value = "耗时(单位：毫秒)")
    private Long times;

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP]
     * 创建时间
     */
    @ApiModelProperty(name = "createTime", value = "创建时间")
    private Date createTime;

    /**
     * LONGVARCHAR(16777215)
     * 返回结果
     */
    @ApiModelProperty(name = "result", value = "返回结果")
    private String result;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table biz_quartz_job_log
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    /**
     * BIGINT(19) 必填
     * 获得 任务日志id
     */
    public Long getLogId() {
        return logId;
    }

    /**
     * BIGINT(19) 必填
     * 设置 任务日志id
     */
    public void setLogId(Long logId) {
        this.logId = logId;
    }

    /**
     * BIGINT(19) 必填
     * 获得 任务id
     */
    public Long getJobId() {
        return jobId;
    }

    /**
     * BIGINT(19) 必填
     * 设置 任务id
     */
    public void setJobId(Long jobId) {
        this.jobId = jobId;
    }

    /**
     * VARCHAR(200)
     * 获得 spring bean名称
     */
    public String getBeanName() {
        return beanName;
    }

    /**
     * VARCHAR(200)
     * 设置 spring bean名称
     */
    public void setBeanName(String beanName) {
        this.beanName = beanName == null ? null : beanName.trim();
    }

    /**
     * VARCHAR(2000)
     * 获得 参数
     */
    public String getParams() {
        return params;
    }

    /**
     * VARCHAR(2000)
     * 设置 参数
     */
    public void setParams(String params) {
        this.params = params == null ? null : params.trim();
    }

    /**
     * BIT(1) 必填
     * 获得 成功标识
     */
    public Boolean getIsSucceed() {
        return isSucceed;
    }

    /**
     * BIT(1) 必填
     * 设置 成功标识
     */
    public void setIsSucceed(Boolean isSucceed) {
        this.isSucceed = isSucceed;
    }

    /**
     * VARCHAR(128)
     * 获得 执行机器名
     */
    public String getHostName() {
        return hostName;
    }

    /**
     * VARCHAR(128)
     * 设置 执行机器名
     */
    public void setHostName(String hostName) {
        this.hostName = hostName == null ? null : hostName.trim();
    }

    /**
     * BIGINT(19) 必填
     * 获得 耗时(单位：毫秒)
     */
    public Long getTimes() {
        return times;
    }

    /**
     * BIGINT(19) 必填
     * 设置 耗时(单位：毫秒)
     */
    public void setTimes(Long times) {
        this.times = times;
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP]
     * 获得 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP]
     * 设置 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * LONGVARCHAR(16777215)
     * 获得 返回结果
     */
    public String getResult() {
        return result;
    }

    /**
     * LONGVARCHAR(16777215)
     * 设置 返回结果
     */
    public void setResult(String result) {
        this.result = result == null ? null : result.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_quartz_job_log
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", logId=").append(logId);
        sb.append(", jobId=").append(jobId);
        sb.append(", beanName=").append(beanName);
        sb.append(", params=").append(params);
        sb.append(", isSucceed=").append(isSucceed);
        sb.append(", hostName=").append(hostName);
        sb.append(", times=").append(times);
        sb.append(", createTime=").append(createTime);
        sb.append(", result=").append(result);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_quartz_job_log
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        QuartzJobLogPO other = (QuartzJobLogPO) that;
        return (this.getLogId() == null ? other.getLogId() == null : this.getLogId().equals(other.getLogId()))
            && (this.getJobId() == null ? other.getJobId() == null : this.getJobId().equals(other.getJobId()))
            && (this.getBeanName() == null ? other.getBeanName() == null : this.getBeanName().equals(other.getBeanName()))
            && (this.getParams() == null ? other.getParams() == null : this.getParams().equals(other.getParams()))
            && (this.getIsSucceed() == null ? other.getIsSucceed() == null : this.getIsSucceed().equals(other.getIsSucceed()))
            && (this.getHostName() == null ? other.getHostName() == null : this.getHostName().equals(other.getHostName()))
            && (this.getTimes() == null ? other.getTimes() == null : this.getTimes().equals(other.getTimes()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_quartz_job_log
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLogId() == null) ? 0 : getLogId().hashCode());
        result = prime * result + ((getJobId() == null) ? 0 : getJobId().hashCode());
        result = prime * result + ((getBeanName() == null) ? 0 : getBeanName().hashCode());
        result = prime * result + ((getParams() == null) ? 0 : getParams().hashCode());
        result = prime * result + ((getIsSucceed() == null) ? 0 : getIsSucceed().hashCode());
        result = prime * result + ((getHostName() == null) ? 0 : getHostName().hashCode());
        result = prime * result + ((getTimes() == null) ? 0 : getTimes().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode());
        return result;
    }
}